package com.cn.shine.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.shine.dao.PayTypeMapper;
import com.cn.shine.pojo.PayType;
import com.cn.shine.service.PayTypeService;
@Service("payTypeService")  
public class PayTypeServiceImpl implements PayTypeService {

    @Resource 
    private PayTypeMapper payTypeMapper;
    
    public int deleteByPrimaryKey(Integer id) {
        return payTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(PayType record) {
        
        return payTypeMapper.insert(record);
    }

    @Override
    public PayType selectByPrimaryKey(Integer id) {
        
        return payTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PayType record) {
        
        return payTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<PayType> getPayTypeList() {
        
        return payTypeMapper.getPayTypeList();
    }

	@Override
	public List<PayType> getPayTypeListByPage(PayType record) {

		return payTypeMapper.getPayTypeListByPage(record);
	}

	@Override
	public int getCountPayTypeList(PayType record) {

		return payTypeMapper.getCountPayTypeList(record);
	}

}
